package Util;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 *
 * @author Ferrari
 */
public final class EMFConection {
   private static EntityManagerFactory instance;
   
   private EMFConection() {
   }
   public static EntityManagerFactory getInstance() {
      if (instance == null){
         instance = Persistence.createEntityManagerFactory(Constantes.PERSISTENCE_NAME);
      }
      return instance;
   }
}
